<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <!-- basic styles -->
        <link href="../../assets/js/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link type="text/css" rel="stylesheet" href="../../assets/js/plugin/jquery-ui/css/jquery-ui.css" />
        <!--<link href="../../assets/js/plugin/datepicker/css/jquery-datepicker.css" rel="stylesheet" media="screen" />-->
        <!--<link href="../../assets/js/plugin/check/check.css" rel="stylesheet" media="screen" />-->
        <link rel="stylesheet" href="../../assets/css/ace.min.css" />
        <link rel="stylesheet" type="text/css" media="all" href="../../assets/js/date-time/daterangepicker-bs3.css"/>
        <style>
            .controls span.help-inline {
                font-size: 12px;
                color: #999
            }
            .modal-body{max-height: 200px;}
            .form-horizontal .row-fluid .left{
                float: left;
                width: 50%;
                margin: 0px;
                padding: 0px;
            }
            .header{padding-left:20px; margin-top: 20px;}
            .row-fluid{border-bottom: 1px solid #d5e3ef;margin-bottom: 10px}
        </style>

    </head>

    <body>
        <div class="main-container">
            <h4 style="" class='header smaller lighter blue'>VoIP类流量管理策略</h4>
            <form class="form-horizontal">
                <div class="row-fluid">
                    <div class="left">
                        <div class="control-group">
                            <label class="control-label" for="policy_desc">策略名称:</label>
                            <div class="controls">
                                <input class="policy_desc" name="policy_desc" type="text" id="policy_desc" placeholder="" required>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="InterfereType">干扰类型:</label>
                            <div class="controls">
                                <select class="InterfereType" id="InterfereType">
                                    <option value="1">信令干扰</option>
                                    <option value="16">媒体流干扰_噪音干扰_强度1</option>
                                    <option value="17">媒体流干扰_噪音干扰_强度2</option>
                                    <option value="18">媒体流干扰_噪音干扰_强度3</option>
                                    <option value="19">媒体流干扰_噪音干扰_强度4</option>
                                    <option value="20">媒体流干扰_噪音干扰_强度5</option>
                                    <option value="21">媒体流干扰_噪音干扰_强度6</option>
                                    <option value="22">媒体流干扰_噪音干扰_强度7</option>
                                    <option value="23">媒体流干扰_噪音干扰_强度8</option>
                                    <option value="24">媒体流干扰_噪音干扰_强度9</option>
                                    <option value="25">媒体流干扰_噪音干扰_强度10</option>
                                    <option value="26">媒体流干扰_噪音干扰_强度11</option>
                                    <option value="27">媒体流干扰_噪音干扰_强度12</option>
                                    <option value="28">媒体流干扰_噪音干扰_强度13</option>
                                    <option value="29">媒体流干扰_噪音干扰_强度14</option>
                                    <option value="30">媒体流干扰_噪音干扰_强度15</option>
                                    <option value="31">媒体流干扰_噪音干扰_强度16</option>
                                    <option value="32">媒体流干扰_回音干扰</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="left">
                        <div class="control-group">
                            <label class="control-label" for="InterfereDir">干扰方向:</label>
                            <div class="controls">
                                <select class="InterfereDir" id="InterfereDir">
                                    <option value="1">仅干扰受控区域内的通话方</option>
                                    <option value="2">仅干扰与受控区域内用户通话的远方</option>
                                    <option value="3">通话双方都受干扰</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <!--被管理的网关-->
                <div class=" row-fluid WebCategery">
                    <div>
                        <a class="btn btn-small MSrcIPSegment" href="javascript:;" onclick="addIPBox(1)">添加网关</a>
                    </div>
                    <table class="table table-condensed VoIPGW">
                        <thead>
                            <tr>
                                <th>网关IP类型</th>
                                <th>网关IP</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
                <!--被管理的网守-->
                <div class=" row-fluid TimeSeg">
                    <div>
                        <a class="btn btn-small MSrcIPSegment" href="javascript:;" onclick="addIPBox(2)">添加网守</a>
                    </div>
                    <table class="table table-condensed VoIPGWKeeper">
                        <thead>
                            <tr>
                                <th>网守IP类型</th>
                                <th>网守IP</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
                <!--被管理的网守-->
                <div class=" row-fluid TimeSeg">
                    <div>
                        <a class="btn btn-small MSrcIPSegment" href="javascript:;" onclick="addTimeSeg()">添加时间段</a>
                    </div>
                    <table class="table table-condensed C_TimeSlots">
                        <thead>
                            <tr>
                                <th>起始时间</th>
                                <th>结束时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
                <div class=" row-fluid">
                    <div class="control-group" style=" margin-left: -200px;">
                        <div class="controls">
                            <a href="javascript:void(0)" class="btn btn-primary" onclick="edit()">&nbsp;保&nbsp;存&nbsp;</a>
                            <a href="javascript:void(0)" class="btn btn-danger" onclick="previous()">&nbsp;取&nbsp;消&nbsp;</a>
                        </div>
                    </div>
                </div>
            </form>
        </div>

        <script src="../../assets/js/jquery.js"></script>
        <script src="../../assets/js/plugin/bootstrap/js/bootstrap.min.js"></script>
        <script type='text/javascript' src="../../assets/js/plugin/jquery-ui/jquery-ui.js"></script>
        <!--<script src="../../assets/js/plugin/datepicker/js/jquery-datepicker.js"></script>-->
        <script src="../../assets/js/date-time/moment.js"></script>
        <script src="../../assets/js/date-time/daterangepicker.js"></script>
        <script src="../../assets/js/plugin/menu/menu.js"></script>
        <script src="../../assets/js/jquery.validate.js"></script>
        <script src="../../assets/js/jquery.validate-util.js"></script>
        <!--<script src="../../assets/js/logic/overlayer.js"></script>-->
        <script src="../../assets/js/Base64.js"></script>
        <script src="logic.js"></script>
        <script type="text/javascript">
            var id = getQueryString("id");
            $(function(){
                $.ajax({
                    method:"POST",
                    async: false,
                    url: "../../action/policy/get.do",
                    dataType: "json",
                    data: {type: type, messageNo: id, instance: DepotName},
                    success: showData
                });
            })
        </script>
    </body>
</html>
